package com.ato.IO;

import java.io.Serializable;

/**
 * @author wangjing
 * @create 2021--12--16--20:28
 */
public class SerializeablePerson implements Serializable {
    private static final long serialVersionUID = 42342423432342L;
    private String name;
    private Integer age;

    public String say() {
        return this.name + this.age;
    }

    public SerializeablePerson() {
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "SerializeablePerson{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }

    public SerializeablePerson(String name, Integer age) {
        this.name = name;
        this.age = age;
    }
}
